import request from '../request';
import config from './addressapi';

//获取地址
export const getAddressList = (options?:any) => {
	return request.get(config.getAddressList,options)
};
// 新增地址
export const addAddress = (options?:any) => {
	return request.post(config.addAddress,options)
};
// 编辑地址
export const editAddress = (options?:any) => {
	return request.post(config.editAddress,options)
};
//删除地址
export const deleteAdress = (options?:any) => {
	return request.post(config.delAddress,options)
};
//具体address
export const getAddressInfo = (options?:any) => {
	return request.get(config.getAddressInfo,options)
};